UserRepository

class UserRepository(userService: UserService) : Repository

Constructors

Link copied to clipboard
constructor(userService: UserService)

Types

Link copied to clipboard
Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
open override val scope: CoroutineScope

Functions

Link copied to clipboard
fun acceptUserInvitation(userId: String, invitationId: String, listener: RainbowListener<Unit, Unit>? = null): Job
Link copied to clipboard
fun cancelUserInvitation(userId: String, invitationId: String, listener: RainbowListener<Unit, Unit>? = null): Job
Link copied to clipboard
fun declineUserInvitation(userId: String, invitationId: String, listener: RainbowListener<Unit, Unit>? = null): Job
Link copied to clipboard
fun deleteUserAccount(userId: String, listener: RainbowListener<Unit, Unit>? = null): Job
Link copied to clipboard
fun fetchApiSettings(listener: RainbowListener<ApiSettingsResponse, Unit>): Job
Link copied to clipboard
fun fetchAvailableThemes(listener: RainbowListener<List<RainbowTheme>, Unit>? = null): Job
Link copied to clipboard
fun fetchCountries(listener: RainbowListener<List<Country>, Unit>? = null): Job
Link copied to clipboard
fun fetchTargetedUserSuggestions(query: Map<String, String>, listener: RainbowListener<TargetedUserSuggestionsResponse, Unit>? = null): Job
Link copied to clipboard
fun fetchUserData(userId: String, listener: RainbowListener<Contact, UserRepository.FetchUserDataError>? = null): Job
Link copied to clipboard
fun fetchUserReceivedInvitations(userId: String, query: Map<String, String>, listener: RainbowListener<List<Invitation>, Unit>? = null): Job
Link copied to clipboard
fun fetchUserSentInvitations(userId: String, query: Map<String, String>, listener: RainbowListener<List<Invitation>, Unit>? = null): Job
Link copied to clipboard
fun fetchUserSettings(userId: String, listener: RainbowListener<UserSettingsResponse, Unit>? = null): Job
Link copied to clipboard
fun fetchUserSuggestions(query: Map<String, String>, listener: RainbowListener<List<Contact>, Unit>? = null): Job
Link copied to clipboard
fun fetchUserTheme(userId: String, listener: RainbowListener<RainbowTheme, Unit>? = null): Job
Link copied to clipboard
fun inviteUser(userId: String, body: InviteUserBody, listener: RainbowListener<Invitation, Unit>? = null): Job
Link copied to clipboard
fun removeContactFromRoster(userId: String, listener: RainbowListener<Unit, Unit>? = null): Job
Link copied to clipboard
fun reSendInvitation(userId: String, invitationId: String, listener: RainbowListener<Invitation, Unit>? = null): Job
Link copied to clipboard
fun resetPassword(body: Map<String, String>, listener: RainbowListener<Unit, Unit>? = null): Job
Link copied to clipboard
fun selectTheme(userId: String, themeId: String, listener: RainbowListener<RainbowTheme, Unit>? = null): Job
Link copied to clipboard
fun selfRegisterByEmail(body: Map<String, String>, listener: RainbowListener<Unit, Unit>? = null): Job
Link copied to clipboard
fun selfRegisterUser(body: SelfRegisterBody, listener: RainbowListener<Contact, Unit>? = null): Job
Link copied to clipboard
fun setUserSettings(userId: String, body: UserSettingsBody, listener: RainbowListener<Unit, Unit>? = null): Job
Link copied to clipboard
fun startResetPassword(body: Map<String, String>, listener: RainbowListener<Unit, Unit>? = null): Job
Link copied to clipboard
open fun stop()
Link copied to clipboard
fun updateUser(userId: String, body: UpdateUserRequest, listener: RainbowListener<Contact, Unit>? = null): Job
Link copied to clipboard
fun updateUserPassword(userId: String, body: Map<String, String>, listener: RainbowListener<Unit, UserRepository.ChangePasswordError>? = null): Job